/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pagrafo.util;

/**
 *
 * @author User007
 */
public class Vetor {

    public static String toString(int[] v) {
        String s = "";

        for (int i = 0; i < v.length; i++) {
            String str = String.valueOf(v[i]);
            s = s + "," + str;
        }

        return s;
    }
    
     public static int countZeros(int[] v) {
        int n = 0;
        for (int i = 0; i < v.length; i++) {
            if (v[i] == 0) {
                n++;
            }
        }
        return n;
    }
}
